package com.bean;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	private String userId;
	private Readertype readertype;
	private String userName;
	private String userGender;
	private String userPhoneNumber;
	private Timestamp userRecordDate;
	private Timestamp userValidDate;
	private Integer userInfractions;
	private String userLoss;
	private String tip;
	private Set backs = new HashSet(0);
	private Set losses = new HashSet(0);
	private Set logins = new HashSet(0);
	private Set boorows = new HashSet(0);
	private Set fines = new HashSet(0);

	// Constructors

	/** default constructor */
	public User() {
	}
     public User(String userId){
    	 this.userId = userId;
     }
	/** minimal constructor */
	public User(String userId, Readertype readertype, String userName,
			String userGender, String userPhoneNumber,
			Timestamp userRecordDate, Timestamp userValidDate,
			Integer userInfractions, String userLoss) {
		this.userId = userId;
		this.readertype = readertype;
		this.userName = userName;
		this.userGender = userGender;
		this.userPhoneNumber = userPhoneNumber;
		this.userRecordDate = userRecordDate;
		this.userValidDate = userValidDate;
		this.userInfractions = userInfractions;
		this.userLoss = userLoss;
	}

	/** full constructor */
	public User(String userId, Readertype readertype, String userName,
			String userGender, String userPhoneNumber,
			Timestamp userRecordDate, Timestamp userValidDate,
			Integer userInfractions, String userLoss, String tip, Set backs,
			Set losses, Set logins, Set boorows, Set fines) {
		this.userId = userId;
		this.readertype = readertype;
		this.userName = userName;
		this.userGender = userGender;
		this.userPhoneNumber = userPhoneNumber;
		this.userRecordDate = userRecordDate;
		this.userValidDate = userValidDate;
		this.userInfractions = userInfractions;
		this.userLoss = userLoss;
		this.tip = tip;
		this.backs = backs;
		this.losses = losses;
		this.logins = logins;
		this.boorows = boorows;
		this.fines = fines;
	}

	// Property accessors

	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Readertype getReadertype() {
		return this.readertype;
	}

	public void setReadertype(Readertype readertype) {
		this.readertype = readertype;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserGender() {
		return this.userGender;
	}

	public void setUserGender(String userGender) {
		this.userGender = userGender;
	}

	public String getUserPhoneNumber() {
		return this.userPhoneNumber;
	}

	public void setUserPhoneNumber(String userPhoneNumber) {
		this.userPhoneNumber = userPhoneNumber;
	}

	public Timestamp getUserRecordDate() {
		return this.userRecordDate;
	}

	public void setUserRecordDate(Timestamp userRecordDate) {
		this.userRecordDate = userRecordDate;
	}

	public Timestamp getUserValidDate() {
		return this.userValidDate;
	}

	public void setUserValidDate(Timestamp userValidDate) {
		this.userValidDate = userValidDate;
	}

	public Integer getUserInfractions() {
		return this.userInfractions;
	}

	public void setUserInfractions(Integer userInfractions) {
		this.userInfractions = userInfractions;
	}

	public String getUserLoss() {
		return this.userLoss;
	}

	public void setUserLoss(String userLoss) {
		this.userLoss = userLoss;
	}

	public String getTip() {
		return this.tip;
	}

	public void setTip(String tip) {
		this.tip = tip;
	}

	public Set getBacks() {
		return this.backs;
	}

	public void setBacks(Set backs) {
		this.backs = backs;
	}

	public Set getLosses() {
		return this.losses;
	}

	public void setLosses(Set losses) {
		this.losses = losses;
	}

	public Set getLogins() {
		return this.logins;
	}

	public void setLogins(Set logins) {
		this.logins = logins;
	}

	public Set getBoorows() {
		return this.boorows;
	}

	public void setBoorows(Set boorows) {
		this.boorows = boorows;
	}

	public Set getFines() {
		return this.fines;
	}

	public void setFines(Set fines) {
		this.fines = fines;
	}

}